package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 换货单对象 es_change_form
 *
 * @author ruoyi
 * @date 2025-03-18
 */
public class EsChangeForm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String sn;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderSn;

    /** 服务专员ID */
    @Excel(name = "服务专员ID")
    private Long staffId;

    /** 服务专员名称 */
    @Excel(name = "服务专员名称")
    private String staffName;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 换货金额 */
    @Excel(name = "换货金额")
    private BigDecimal changeAmount;

    /** 经手人ID */
    @Excel(name = "经手人ID")
    private Long handledById;

    /** 经手人 */
    @Excel(name = "经手人")
    private String handledBy;

    /** 换货说明 */
    @Excel(name = "换货说明")
    private String changeDesc;

    /** 换货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "换货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 审核驳回原因 */
    @Excel(name = "审核驳回原因")
    private String rejectReason;

    /** 提交审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /** 审核人ID */
    @Excel(name = "审核人ID")
    private Long auditPersonId;

    /** 审核人名称 */
    @Excel(name = "审核人名称")
    private String auditPersonName;
    private List<EsChangeProduct> products;

    public List<EsChangeProduct> getProducts() {
        return products;
    }

    public void setProducts(List<EsChangeProduct> products) {
        this.products = products;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setOrderSn(String orderSn)
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn()
    {
        return orderSn;
    }
    public void setStaffId(Long staffId)
    {
        this.staffId = staffId;
    }

    public Long getStaffId()
    {
        return staffId;
    }
    public void setStaffName(String staffName)
    {
        this.staffName = staffName;
    }

    public String getStaffName()
    {
        return staffName;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }
    public void setWarehouseId(Long warehouseId)
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId()
    {
        return warehouseId;
    }
    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }
    public void setChangeAmount(BigDecimal changeAmount)
    {
        this.changeAmount = changeAmount;
    }

    public BigDecimal getChangeAmount()
    {
        return changeAmount;
    }
    public void setHandledById(Long handledById)
    {
        this.handledById = handledById;
    }

    public Long getHandledById()
    {
        return handledById;
    }
    public void setHandledBy(String handledBy)
    {
        this.handledBy = handledBy;
    }

    public String getHandledBy()
    {
        return handledBy;
    }
    public void setChangeDesc(String changeDesc)
    {
        this.changeDesc = changeDesc;
    }

    public String getChangeDesc()
    {
        return changeDesc;
    }
    public void setChangeTime(Date changeTime)
    {
        this.changeTime = changeTime;
    }

    public Date getChangeTime()
    {
        return changeTime;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setRejectReason(String rejectReason)
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason()
    {
        return rejectReason;
    }
    public void setSubmitTime(Date submitTime)
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime()
    {
        return submitTime;
    }
    public void setAuditTime(Date auditTime)
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime()
    {
        return auditTime;
    }
    public void setAuditPersonId(Long auditPersonId)
    {
        this.auditPersonId = auditPersonId;
    }

    public Long getAuditPersonId()
    {
        return auditPersonId;
    }
    public void setAuditPersonName(String auditPersonName)
    {
        this.auditPersonName = auditPersonName;
    }

    public String getAuditPersonName()
    {
        return auditPersonName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("orderSn", getOrderSn())
            .append("staffId", getStaffId())
            .append("staffName", getStaffName())
            .append("deptId", getDeptId())
            .append("deptName", getDeptName())
            .append("warehouseId", getWarehouseId())
            .append("warehouseName", getWarehouseName())
            .append("changeAmount", getChangeAmount())
            .append("handledById", getHandledById())
            .append("handledBy", getHandledBy())
            .append("changeDesc", getChangeDesc())
            .append("changeTime", getChangeTime())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("rejectReason", getRejectReason())
            .append("submitTime", getSubmitTime())
            .append("auditTime", getAuditTime())
            .append("auditPersonId", getAuditPersonId())
            .append("auditPersonName", getAuditPersonName())
            .toString();
    }
}
